package com.ynet.middleground.riskmanage.bean;

import javax.validation.constraints.NotEmpty;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liwq
 * @description 接收冷链申请结果通知
 * @date 2022-05-08 16:15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "接收冷链申请结果通知请求信息", description = "接收冷链申请结果通知请求信息")
public class ReceiveApplyResultReq extends BaseReqObj {

    private static final long serialVersionUID = 929701033081630469L;

    @ApiModelProperty(value = "申请ID(渠道端发起申请后，冷链返回的申请ID)", notes = "申请ID(渠道端发起申请后，冷链返回的申请ID)", required = true)
    @NotEmpty(message = "申请ID不能为空")
    private String supplyId;

    @ApiModelProperty(value = "查询请求处理时间，格式yyyy-MM-dd hh:mm:ss", notes = "查询请求处理时间，格式yyyy-MM-dd hh:mm:ss",
        required = true)
    @NotEmpty(message = "查询请求处理时间不能为空")
    private String procTime;

    @ApiModelProperty(value = "状态（0：未处理, 1：通过，2：驳回）", notes = "状态（0：未处理, 1：通过，2：驳回）", required = true)
    @NotEmpty(message = "状态不能为空")
    private String status;

    @ApiModelProperty(value = "错误消息", notes = "错误消息")
    private String errorMsg;

    @ApiModelProperty(value = "货主账号", notes = "货主账号", required = true)
    @NotEmpty(message = "货主账号不能为空")
    private String customerNumber;

    @ApiModelProperty(value = "货主名称", notes = "货主名称")
    private String customerName;

    @ApiModelProperty(value = "税号", notes = "税号", required = true)
    @NotEmpty(message = "税号不能为空")
    private String taxNumber;

    @ApiModelProperty(value = "备注(若一个税号对应多个货主账号，则通过此字段返回，英文\n" + "逗号隔开，例：货主账号1,货主账号2 )",
        notes = "税号(若一个税号对应多个货主账号，则通过此字段返回，英文\n" + "逗号隔开，例：货主账号1,货主账号2 )")
    private String remark;
}
